﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model.Discount
{
    [Table("T_Discount_Member")]
    public class T_Discount_Member
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 优惠券类型
        /// </summary>
        public int D_Id { get; set; }
        /// <summary>
        /// 会员id
        /// </summary>
        public int M_Id { get; set; }
        /// <summary>
        /// 赠送时间
        /// </summary>
        public DateTime Send_Time { get; set; } = DateTime.Now;

        /// <summary>
        /// 使用时间
        /// </summary>
        public DateTime? Use_Time {  get; set; }

        /// <summary>
        /// 优惠券使用的状态
        /// </summary>
        public bool Use_State { get; set; } = false;
        /// <summary>
        /// 优惠券的数量
        /// </summary>
        public int D_Number { get; set; } = 1;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
